/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GUI;

import java.awt.BorderLayout;
import java.awt.Color;
import javax.swing.*;
import system.MovieHandler;
import system.UserHandler;
import system.GradeHandler;

/**
 *
 * @author Thommie
 */
public class RightPanel extends JPanel {

    private UpperPanel upper;
    private LowerPanel lower;
    private GradeHandler gh;

    public RightPanel(MovieHandler mHandler, MyFrame mF, UserHandler uH, GradeHandler gh) {
        this.setLayout(new BorderLayout());
        upper = new UpperPanel(mHandler, uH, gh);
        lower = new LowerPanel(mHandler);

        mF.lP = lower;

        this.add(upper, BorderLayout.NORTH);
        this.add(lower, BorderLayout.SOUTH);
    }



    public UpperPanel getUpperPanel() {
        return upper;
    }
}
